package com.mt.yanyou.utils;

import android.content.Context;

import cn.refactor.lib.colordialog.ColorDialog;
import cn.refactor.lib.colordialog.PromptDialog;

/**
 * 2020.9.4
 * Dailog工具类
 */
public class DialogUtil {
    private static PromptDialog dialog;
    public static  void dialogCreate(Context context, String title, String content,int type,String button_txt){
        dialog = new PromptDialog(context);
        dialog.setTitleText(title);
        dialog.setDialogType(type);
        dialog.setContentText(content);
        dialog.setPositiveListener(button_txt, new PromptDialog.OnPositiveListener() {
    @Override
    public void onClick(PromptDialog dialog) {
        dialog.dismiss();
            }
        });
dialog.show();
    }
}
